import { defineStore } from "pinia";
import {reqTheme} from "../../api/course/course"
let themeStore = defineStore('category',{
    state:()=> {
        return {
            // 分类数据
          themeList:{},
       
        }
    },
    actions:{
        async getTheme(){
            const result = await reqTheme()
            this.themeList = result
        }
    }
})
export default themeStore